// JavaScript Document

var incr = 0;
var Tset = null;

function display_loading()
{
	var output = "";
	output += '<div id="loading" style="">';
	output += '<table width="460" border="0" cellspacing="1" cellpadding="1">';
  	output += '<tr>';
    output += '<td width="360" align="left" valign="top" class="lebel2">Please wait. Sitemap generation in progress.</td>';
    output += '<td width="100" align="left" valign="middle" height="20"><table width="100%" border="0" cellspacing="1" cellpadding="0">';
        output += '<tr height="20">';
          output += '<td valign=middle><div id="div0" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td valign=middle><div id="div1" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td valign=middle><div id="div2" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td valign=middle><div id="div3" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div4" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div5" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div6" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div7" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div8" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
          output += '<td  valign=middle><div id="div9" style="width:10;height:10;"><img src="images/spacer.gif"></div></td>';
        output += '</tr>';
      output += '</table></td>';
  	output += '</tr>';
	output += '</table>';
	output += '</div>';
	
	document.write(output);
	doit_loading();
}

display_loading();

function doit_loading()
{
	document.getElementById('div'+incr).style.background = "#333333";
	incr++;
	if( incr == 10 )
	{
		incr = 0;
		for( i = 0; i< 10; i++ )
		{
			document.getElementById('div'+i).style.background = "#FFFFFF";
		}
		Tset = setTimeout("doit_loading()",100);
		//clearTimeout(Tset);
	}
	else
		Tset = setTimeout("doit_loading()",200);
}
